using System.Runtime.Serialization;
using Microsoft.Practices.Prism.ViewModel;

namespace FU.Capstones.IMS.Web.Common.InventoryServiceProxy.DataContracts
{
    [DataContract(Namespace = WebConstants.ServiceNamespace)]
    public class Authorization : NotificationObject
    {
        private int authenticationID;
        [DataMember]
        public int AuthorizationID
        {
            get { return authenticationID; }
            set
            {
                if (!Equals(authenticationID, value))
                {
                    authenticationID = value;
                    RaisePropertyChanged(() => AuthorizationID);
                }
            }
        }

        private bool isSelected;
        [DataMember]
        public bool IsSelected
        {
            get { return isSelected; }
            set
            {
                if (!Equals(isSelected, value))
                {
                    isSelected = value;
                    RaisePropertyChanged(() => IsSelected);
                }
            }
        }

        private string description;
        [DataMember]
        public string Description
        {
            get { return description; }
            set
            {
                if(!ReferenceEquals(description, value))
                {
                    description = value;
                    RaisePropertyChanged(() => Description);
                }
            }
        }
}
}